//
//  XWHATextContentView.swift
//  XiaoweHearingAid
//
//  Created by edy on 2024/11/9.
//

import UIKit

class XWHATextContentView: XWHBaseView {

//    lazy var titleLb = UILabel()
//    lazy var subTitleLb = UILabel()
//    
//    lazy var textBgView = UIView()
    lazy var textLb = UILabel()

    override func addSubViews() {
        super.addSubViews()
        
//        addSubview(titleLb)
//        addSubview(subTitleLb)
//        
//        addSubview(textBgView)
        addSubview(textLb)
        
//        textBgView.layer.cornerRadius = 12
//        textBgView.layer.backgroundColor = collectionBgColor.cgColor
    
//        var font = AppFont.harmonyOSSans(ofSize: 20, weight: .regular)
//        titleLb.font = font
//        titleLb.textColor = majorTextColor
//        titleLb.textAlignment = .left
//        
//        font = AppFont.harmonyOSSans(ofSize: 10, weight: .regular)
//        subTitleLb.font = font
//        subTitleLb.textColor = btnBgColor
//        subTitleLb.textAlignment = .center

        textLb.font = AppFont.harmonyOSSans(ofSize: 10, weight: .regular)
        textLb.textColor = majorTextColor
        textLb.textAlignment = .left
        textLb.numberOfLines = 0
    }
    
    override func relayoutSubViews() {
//        titleLb.snp.makeConstraints { make in
//            make.height.equalTo(20)
//            make.left.equalToSuperview().inset(16)
//            make.top.equalToSuperview().inset(16)
//            make.width.lessThanOrEqualTo(80)
//        }
//        subTitleLb.snp.makeConstraints { make in
//            make.height.centerY.equalTo(titleLb)
//            make.left.equalTo(titleLb.snp.right).offset(4)
//            make.width.lessThanOrEqualTo(120)
//        }
//        
//        textBgView.snp.makeConstraints { make in
//            make.left.right.equalToSuperview()
//            make.top.equalTo(titleLb.snp.bottom).offset(4)
//            make.bottom.equalToSuperview()
//        }
        
        textLb.snp.makeConstraints { make in
            make.edges.equalToSuperview().inset(10)
        }
    }

}
